package org.kernely.stream.administration;

import org.kernely.ui.mvp.IKernelyView;

import com.vaadin.ui.Component;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;

public class StreamInformationsView extends VerticalLayout implements IKernelyView{

	/**
	 * Serial Version ID
	 */
	private static final long serialVersionUID = 5251514575416195066L;
	private TextField title;
	
	public StreamInformationsView(){
		this.title = new TextField("Title");
		this.title.setMaxLength(100);
		this.title.setRequired(true);
		this.title.setRequiredError("Name can not be empty!");
		this.setMargin(true);
		this.addComponent(this.title);
		
	}

	/**
	 * @return the title
	 */
	public final TextField getTitle() {
		return title;
	}

	/**
	 * Useless method.
	 */
	public final Component getComponent() {
		return this;
	}

}
